Fawry interview question

a write code on a paper for problem solving like the leetcode problem .