Ameex Interview Question

some logical programs