Nordnet Bank interview question

Technical: Explain your thought process when organizing your code into java packages? What should be in the controller/service/database layers?