This is the implementation of crack interview questions