How would you answer this question?

Question Answered step-by-step How would you answer this question? Image transcription text8. Create a recursive function intToBin(n) that takes a non-negative integer and returns a string of its binarydigits. For example, intToBin(6) returns 110′. Hint: implement two base cases: n == 0 and n == 1: as they coverthe situations when n has only one binary digit. In [ ]:… Show moreHow would you answer this question? Engineering & Technology Computer Science IT 4MM013 Share QuestionEmailCopy link Comments (0)