Now works for question condition of 40 bit integer Long Long Int. Solution, can be found in execution.