puzzle solved by Aadharv Sivakumar