Datamato Interview Question

write a code for interface