Company: Swiggy_8_jan
Difficulty: medium
One block body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.6; color: #333; max-width: 800px; margin: 20px auto; padding: 0 20px; } h1, h2, h3 { border-bottom: 1px solid #eaecef; padding-bottom: .3em; } h1 { font-size: 2em; } h2 { font-size: 1.5em; } h3 { font-size: 1.2em; } code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; background-color: #f6f8fa; padding: .2em .4em; margin: 0; font-size: 85%; border-radius: 3px; } pre { background-color: #f6f8fa; padding: 16px; overflow: auto; border-radius: 6px; } pre code { padding: 0; margin: 0; font-size: 100%; background-color: transparent; } strong { font-weight: 600; } em { font-style: italic; } ul, ol { padding-left: 2em; } One block Problem Description You are working in the resource distribution team of your company. A One block is a block of data having exactly one resource which ha