2 Questions and asked to run test cases for both
Lot of follow ups for the 1st question around time complexity