adding coding question solutions in python