This pattern of given steps of the input is as similar as given in the question number 2 . Following the pattern, input of the given number 159 in Step II Input​:​12"​↓Squaring of 12StepI​−​144​↓Subtract 5StepIII​−​161​↓Subtract 2Step IV​−​159​