<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anurag Soni on Medium]]></title>
        <description><![CDATA[Stories by Anurag Soni on Medium]]></description>
        <link>https://medium.com/@anurags565?source=rss-38241325a9d6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3yldxBh6pMLYT6Kp</url>
            <title>Stories by Anurag Soni on Medium</title>
            <link>https://medium.com/@anurags565?source=rss-38241325a9d6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:28:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anurags565/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My Agoda Senior Frontend Engineer BKK Interview: OA Questions Breakdown]]></title>
            <link>https://medium.com/@anurags565/my-agoda-senior-frontend-engineer-bkk-interview-oa-questions-breakdown-bb140d129be8?source=rss-38241325a9d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb140d129be8</guid>
            <category><![CDATA[agoda]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Anurag Soni]]></dc:creator>
            <pubDate>Thu, 12 Feb 2026 05:00:59 GMT</pubDate>
            <atom:updated>2026-02-12T05:00:59.273Z</atom:updated>
            <content:encoded><![CDATA[<p>As a senior React dev interviewing for Senior Software Engineer — Front End (BKK SHP) at Agoda, the process started with a solid online assessment (OA): 2 JavaScript questions + 1 DSA problem. Time-boxed around 100 mins. Here’s exactly what they asked — great prep material for similar roles.</p><h3>Round 1: Online Assessment Questions</h3><h3>JavaScript Question 1: Memoization Implementation</h3><p>Problem: Write memoize(func) that takes a function and returns a memoized version. Caches results by arguments—first call computes and stores, repeats return cache instantly without recomputing.</p><h3>JavaScript Question 2: Recursive Comment Thread Length</h3><p>Problem: Implement getThreadLength(comment) for a nested comment object. Returns total comments count (original + all replies, recursively).</p><pre>Original comment<br>├── Reply 1<br>│   ├── Reply 1.1<br>│   │   ├── 1.1.1<br>│   │   └── 1.1.2<br>│   └── 1.1.3? Wait, example had 9 total in threaded replies.</pre><ul><li>Input: Object with replies array of similar objects.</li><li>Output: Integer total (e.g., 9 for original + 8 replies).</li></ul><h3>DSA Question: Lounge Stocking Optimization</h3><p>Problem: Maximize additional coffee creamer orders without waste. Lounge has onHand (current stock by expiry day), supplier (available to order by expiry), fixed demand per day. Creamer expiring day D must be used by D—no carryover.</p><p>Inputs:</p><ul><li>onHand = [0, 2, 2] (units expiring days 0,1,2)</li><li>supplier = [2, 0, 0] (available expiring days 0,1,2)</li><li>demand = 2</li></ul><p>Example: Max order 2 units (e.g., from supplier day 0 and day 2). Usage:</p><ul><li>Day 0: onHand + ordered</li><li>Day 1: onHand + ordered</li><li>Day 2: onHand + ordered</li></ul><p>Return max units orderable without excess past expiry.</p><p><strong>Sharing for the community — good luck crushing it!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb140d129be8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Sprinklr Senior Product Engineer Frontend Experience (30+ LPA) TR1]]></title>
            <link>https://medium.com/@anurags565/my-sprinklr-senior-product-engineer-frontend-experience-30-lpa-tr1-85fcd19b935f?source=rss-38241325a9d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/85fcd19b935f</guid>
            <category><![CDATA[senior-frontend-developer]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[interview-experience]]></category>
            <category><![CDATA[sprinklr]]></category>
            <dc:creator><![CDATA[Anurag Soni]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 05:42:38 GMT</pubDate>
            <atom:updated>2025-12-23T05:42:38.674Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I appeared for a frontend developer interview at Sprinklr, and I want to share my experience — especially because the first technical round was a pure hands-on React machine coding challenge.</p><p>If you’re preparing for product-based company interviews, this might give you a realistic sense of the kind of problems you can expect.</p><h3>Round 1: React Machine Coding</h3><p>This round had two questions, both designed to test React fundamentals and your ability to think in components.<br>The coding environment was similar to an online IDE — Codesandbox.</p><p>A key detail — for the first question, all UI designs were already provided, so my focus was purely on implementing logic and interactions.<br>For the second question, however, I had to design and implement the UI from scratch along with the functionality.</p><p>This mix made the round a perfect balance between real-world logic building and frontend creativity.</p><h3>Question 1: Infinite Nested Folder Structure</h3><p>I was asked to build a nested file–folder design, similar to what you see in VS Code’s sidebar.</p><p>Requirements:</p><ul><li>Each folder could contain any number of subfolders or files.</li><li>Each node had buttons to Add File and Add Folder, opening an input box to type a name.</li><li>Pressing Enter added the item, and each node had a Delete button to remove itself (and everything inside, if it was a folder).</li></ul><p>This challenge tested:</p><ul><li>Recursive component creation in React.</li><li>Handling tree data structures and immutability.</li><li>Managing nested state updates efficiently.</li></ul><p>Because the UI was already designed, I could entirely focus on writing concise, composable logic. I used a recursive &lt;Folder /&gt; component, passing handlers for adding and deleting nodes via props. Once the recursive structure was stable, everything else fell into place smoothly.</p><h3>Question 2: Image Carousel</h3><p>The second task was quite different — here, I had to design and code the entire UI along with the logic for an image carousel.</p><p>Requirements:</p><ul><li>Build a basic image carousel with “Next” and “Previous” buttons.</li><li>Auto-slide to the next image every 3 seconds.</li><li>Display the current image count (e.g., “2 / 5”) below.</li><li>Should loop back to the first image after the last one.</li><li>Cache previous/next images for instant, flicker-free transitions.</li></ul><p>This problem focused on:</p><ul><li>Component state and interval timers.</li><li>Cleanup with useEffect to prevent memory leaks.</li><li>Edge case handling (first/last image boundaries).</li><li>Smooth UI logic with minimal code.</li></ul><p>I implemented it using an images array and maintained a currentIndex state. Using setInterval with proper cleanup ensured it auto-advanced correctly. Preloaded previous/next images by rendering them off-screen (position: absolute, opacity: 0) or you can use new Image() preload.</p><h3>My Takeaway</h3><p>Sprinklr’s frontend round was pure React logic and code quality — no tricky algorithms or LeetCode-style questions. The focus was on:</p><ul><li>Code structure and readability.</li><li>React fundamentals (hooks, component design).</li><li>Handling interactive UI with real-time updates.</li></ul><p>If you’re preparing for similar roles, I’d suggest practicing:</p><ul><li>Tree UIs with nested state.</li><li>Timed components with proper cleanup.</li><li>Preloading for smooth interactions.</li></ul><p>For me, the round was refreshing — challenging but very aligned with real-world frontend work. Props to the Sprinklr team for crafting a practical assessment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85fcd19b935f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>