Amdocs Interview Question

algoritms question, linux, sql and logical