ZET Interview Question

Array based dsa problem related to pythogores theorem