minimum steps to one
Time and space complexity of this program
it should be of the order N
log2(N)+log3(N)+N
so time complexity will be O(N);
minimum steps to one
it should be of the order N
log2(N)+log3(N)+N
so time complexity will be O(N);