Zenoti interview question

write program for cash return