Taction Software interview question

basic analysis