Google Interview Question

Several tough questions to solve with expected output and time complexity