Cometi um erro 😭

Published by MegaLoser in

Um arquivo JSON contém arrays aninhados em profundidades arbitrárias. Retorne a string encontrada em qualquer parte deles. Se não houver nenhuma string, retorne "What... why did you make this?".

Exemplos

getValue([[[[["Bazinga"]]]]]) âžž "Bazinga"

getValue([[], [[[[["God what is happening..."]]]]]]) âžž "God what is happening..."

getValue([[[[[[]]]]]]) âžž "What... why did you make this?"

getValue([[[[[[]]]], "I'm not gonna lose."]]) âžž "I'm not gonna lose."

Observações

A string pode aparecer em qualquer nível de aninhamento.