Maytronics US interview question

Home assignment building a gui app