Kunal Singhal's submission of BRAINWAVE | CodeChef