2 more solutions

2 more interview Questions luckily found 1 in geeksforgeeks.