Unidesk interview question

How would I write a program for a ATM Machine and how would I test it?