I got only a few answers to this puzzle, and all of them correct. In my opinion, the difficult one was pretty difficult – thanks to those who attempted it, and more so to those who sent a correct answer. Abhinav Jain and Deepak Mittal sent the correct answers – congratulations to both!
Attaching the correct answers here:
Hope you all enjoyed the puzzle!