Netomi interview question

Design Patterns, Get the Data from API and do th calculation