TestMu AI Interview Question

How to write UI automation for given problem