Challenge 18 - Frequency by Level of Nesting

Create a function that takes in a nested array and an element and returns the frequency of that element by nested level. 

Input: 
Number: 
Output: