TestMu AI interview question

How to write UI automation for given problem