Here is the JSON file with data: bakery.json
All tasks require the input to be JSON parsable in JS. (JSON.stringify in JS, json.dumps in Python, check https://www.json.org/json-en.html for other languages)
There are 6 tasks in this test. You need to complete at least the first 5 mandatory ones to be able to submit your solutions. Your submitted code will be evaluated as well, so make sure the code is easy to read and not overcomplicated.
At the last screen, also upload your solutions to Replit and make sure to set your repository's settings to public, and that your code runs, so we can review it!
Stevie is your long-time friend. Due to a mid-life crisis, he decided to abandon his lucrative career as a cardiac surgeon and follow his dream. After going bankrupt a few times in various fields - including a Kickstarter campaign selling instant water and a livestock farm - , he finally found his calling and opened a Sweetshop where he bakes cakes and cookies. He's always been a really good baker with a knack for sweets, so you're surprised why a bakery wasn't his first choice, but business and rational thinking aren't his strengths.
After a few weeks of running his shop, he's calling you in the middle of the night, desperate, offering a lifetime supply of sweets in exchange for your help. You are a well-known glutton, so you jump at this wonderful opportunity. To ensure the unending flow of cakes and pastries into your belly, you gather all your knowledge to help him stay in business.
Stevie sends every available data point he has, along with the problems he's facing. In the data, you find the secret recipes of his great-grandmother with detailed ingredients, his inventory of supplies, wholesale prices for the ingredients, and his last week of retail sales amount.
Here is the JSON file with data: bakery.json