Amdocs Interview Question

few logical questions