Q1: We are given a string containing only zeroes and ones, need to find the number of ways to generate strings of length 3 which contain zeroes and ones at alternate position .
Eg; string = "01001"
possible strings are 010, 010, 101, 101
So there are total 4 ways. return value is of type LONG
Q2: https://leetcode.com/discuss/interview-question/1643403/amazon-oa-sde-1