Gird Technologies interview question

Array functions,Hooks in CI,Helpers in CI, 3 code asked me to write, Swapping of numbers without using third variable,prime number,leap year