Epic Interview Question

Write a function that creates a sequence that creates the next terms of a sequence where the next term counts the frequency of digits in the previous term

Interview Answer

Anonymous

Jul 27, 2020

I wrote two FOR loops that split the term into individual digits, counted the frequency of each one, and built the return character by character.