Google Interview Question

more on puzzle and also technical coding and also scenario based coding