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?