This is an algorithm trace task. No implementation is required.
Read the following algorithm for the recursive procedure called Mystery.
(a) Give the output if the procedure is called by MYSTERY(” ”, ”RED”) 
(b) The function is called with MYSTERY(” ”, ”AB”)
Write down all the instructions, including procedure calls, in the order in which they are executed. You must show the values of the variables in each instruction. 
This task was worth 17 Marks. It was an algorithm trace task. No implementation is required that originally appeared in OCR 2507 Task 4 Jun 2008. All rights and copyright to OCR. Please refer to the OCR Copyright Statement for further information.