SoundHound Interview Question

Using a random number generator function that returns a number between 1-5, create a function using only the given function that returns a number between 1-7 with equal probability.