Question:


Sollution:


Reference: Bangladesh Olympiad Practice