Given the following recursive function signature, write the function code such that takes two positive integers x and y as its input where x less than y, and outputs the minimal number of invocations of the operations +1 and ∗2 that are required to obtain y from x. For Example: If the inputs 10 17, the output will be 7 (due to 7 invocations of +1). For the input 10 21, the output will be 2 (due to ∗2 and then +1).

[ editor.getValue() ]
window.codeValue = editor.getValue(); window.progexType= "recursion"; window.summexName= "recWMinOpsPROG"; //return "openPop";