1) Write a function that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,],4] → [1,2,3,4]. If the language you’re using has a function to flatten arrays, you should pretend it doesn’t exist.
2) Build a simple file uploader which can be used by other applications as a plugin or module. The uploader should have following features:
user_idwith each file.
Also, write the code the way you will write it in production. Some guidelines are: