title: Count Possible Ways To Construct Buildings
signature: def count_possible_ways_to_construct_buildings(n):
source_py: def count_possible_ways_to_construct_buildings(N):
      if (N == 1):
          return 4
      countB = 1
      countS = 1
      for i in range(2, (N + 1)):
          prev_countB = countB
          prev_countS = countS
          countS = (prev_countB + prev_countS)
          countB = prev_countS
      result = (countS + countB)
      return (result * result)
source_cpp: int count_possible_ways_to_construct_buildings(int N) {
    if ( N == 1 ) return 4;
    int countB = 1, countS = 1, prev_countB, prev_countS;
    for ( int i = 2;
    i <= N;
    i ++ ) {
      prev_countB = countB;
      prev_countS = countS;
      countS = prev_countB + prev_countS;
      countB = prev_countS;
    }
    int result = countS + countB;
    return ( result * result );
  }
question_info.test_code: import array
  import bisect
  import collections
  import datetime
  import functools
  import heapq
  import itertools
  import math
  import queue
  import re
  import string
  import sys
  from typing import Any, Dict, List, Optional, Set
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  def validate_solution(actual, expected):
      return actual == expected
  
  def driver(n, expected):
      try:
          if validate_solution(PLACEHOLDER_FN_NAME(
              n),
              expected
          ):
              return "PASSED"
          return "FAILED"
      except Exception as exception_obj:
          return type(exception_obj).__name__
      
  if __name__ == "__main__":
      result = driver(17, 17480761)
      print(f"TEST-0...{result}")
  
      result = driver(34, 222915410843904)
      print(f"TEST-1...{result}")
  
      result = driver(9, 7921)
      print(f"TEST-2...{result}")
  
      sys.exit(0)
question_info.test_case_ids: ['0', '1', '2']
question_info.entry_fn_name: count_possible_ways_to_construct_buildings
question_info.test_list: [{"idx": 0, "outputs": 17480761, "inputs": {"n": 17}}, {"idx": 1, "outputs": 222915410843904, "inputs": {"n": 34}}, {"idx": 2, "outputs": 7921, "inputs": {"n": 9}}]
question_info.entry_cls_name: Solution