Accuknox Interview Question

DSA Problem solving in python