I have for left part of code and little bit of right part code how to merge it and how to make right part correct and one more my collaborate mode? is not going to off

I would recommend you to draw the positioning of the number on pen paper
try mapping the coordinated
This would help you as to how to do it for the next time
For now i have updated the code


This is fully functional code, In case of any doubts do ask.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.