WD interview question

Practise Leetcode and go through geeksforgeeks