Code Vyasa interview question

Frontend fundamentals and tricky coding problem