#SeasonsOfServerless Solution 3: The Longest Kebab
Tags: serverless, azure, javascript, webdev
Published: 2020-12-14 20:21:29

---
title: #SeasonsOfServerless Solution 3: The Longest Kebab
published: true
description:  Welcome to Week 4 of #SeasonsOfServerless - a fun festive challenge for developers worldwide. Learn more at https://aka.ms/SeasonsOfServerless!
tags: serverless, azure, javascript, webdev
series: "#SeasonsOfServerless 2020"
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/usfktgxdonyrnivsjt8d.png
---

🚨 **[🌟🌟🌟 Our new challenge is LIVE! 🌟🌟🌟](https://github.com/microsoft/Seasons-of-Serverless#welcome-to-the-seasons-of-serverless)** 🚨

> This article is part of [#SeasonsOfServerless](https://aka.ms/SeasonsOfServerless). 

> Each week we will publish a challenge co-created by [Azure Advocates](https://dev.to/azure) with some amazing [Student Ambassadors](https://studentambassadors.microsoft.com/) around the world. Discover popular festive recipes and learn how Microsoft Azure empowers you to do more with [Serverless Functions](https://docs.microsoft.com/en-us/azure/azure-functions/?WT.mc_id=academic-10922-cxa)!  🍽 😍.

> Explore our serverless [Resources](https://github.com/microsoft/Seasons-of-Serverless/blob/main/RESOURCES.md) here and learn how you can contribute solutions [here](https://github.com/microsoft/Seasons-of-Serverless/blob/main/CONTRIBUTING.md).

---

### 🍽 | Seasons Of Serverless

We are now entering `WEEK 4` of #SeasonsOfServerless developer challenge series!! It's never too late to join in and learn about festive traditions around the world - and explore a bit of code in the process!

Want to learn more about what #SeasonsOfServerless is and how you can participate? Start by reading this post:

{% link https://dev.to/azure/azure-advocates-seasons-of-serverless-join-our-virtual-festive-potluck-53m6 %}

---

### 🇹🇷 | The 'Longest Kebab' Challenge!

Our chef last week was Microsoft Student Ambassador Baris Ceviz, who shared a popular tradition from the 'Adana kebabi' festival in Turkey with Cloud Advocates Chloe Condon and Cecil Phillip. 

From the [project brief](https://github.com/microsoft/Seasons-of-Serverless/blob/main/Dec-7-2020.md)

> _The most common problem in this festival is calculating how much material is needed to create the longest possible kebab based on the amount of material you have on hand. Since there are so many people at the festival, and you'd like to serve them all, the materials must be calculated quickly._

> _You need to produce a fast serverless solution to this problem. Create a kebab calculator that, given a certain amount of meat in kilos, can calculate how many people you'll be able to feed as well as how long your kebab can be!_

---

### 👨🏼‍🍳 | Our Chefs Weigh in!

Want to learn how our intrepid team solved this conundrum? First, check out their video walkthrough of their solutions right here!

{% youtube  O_SnfA8vV0o %}

You can also dive into the code on [this GitHub repo](https://github.com/peacecwz/kebab-calculator)

If you port this to a different language of your choosing, just leave us a [comment](#comment) and share your code! We'd love to see it! 🎉

---

### 🏆 | Thanks for the submissions!

They setup a great challenge and we are so excited to see all the submissions that came in from the developer community!! 

Want to learn how others solved the challenge, potentially with a different programming language?

**[Check out our Contributors Hall Of Fame for Week 3!](https://github.com/microsoft/Seasons-of-Serverless/blob/main/CONTRIBUTORS.md#week-three)**

![Contributors Hall of Fame Banner Image](https://camo.githubusercontent.com/e62b8498320539e1cbcf66d2a98ce88bf36896ef9823c5e66b7b048fcb47bbcc/68747470733a2f2f692e706f7374696d672e63632f44774867776d6a6e2f4a6176612d5363726970742e6a7067)

---

### 🙋🏼‍♀️ | It's not too late to join us!

🚨 **[🌟🌟🌟 Our new challenge is LIVE! 🌟🌟🌟](https://github.com/microsoft/Seasons-of-Serverless#welcome-to-the-seasons-of-serverless)** 🚨

> This article is part of [#SeasonsOfServerless](https://aka.ms/SeasonsOfServerless). 

> Each week we will publish a challenge co-created by [Azure Advocates](https://dev.to/azure) with some amazing [Student Ambassadors](https://studentambassadors.microsoft.com/) around the world. Discover popular festive recipes and learn how Microsoft Azure empowers you to do more with [Serverless Functions](https://docs.microsoft.com/en-us/azure/azure-functions/?WT.mc_id=academic-10922-cxa)!  🍽 😍.

> Explore our serverless [Resources](https://github.com/microsoft/Seasons-of-Serverless/blob/main/RESOURCES.md) here and learn how you can contribute solutions [here](https://github.com/microsoft/Seasons-of-Serverless/blob/main/CONTRIBUTING.md).