Rooted , here are my hints :
User : - read carefully the webpage. The next step should be obvious
- enumerate a little to get user.txt
Root : -don’t overthink , it’s very simple , some basics Linux privesc…
You’ll need basics python understanding!
Good luck