Frage im Vorstellungsgespräch bei ThoughtSpot

Write a program to flatten an array based on different levels