Amazon, Recent Online Assessment Questions | Maximize Product Operations & Data Queries | 27th Feb 2025 | Hackerrank | OA

Amazon · Question · Posted Mar 2026

Question 1: Maximize Product Operations Problem Statement: Given a string s, the "type" of the string is defined by its first and last characters. For example, if s = "babdcaac", the type is "bc" (starts with 'b' and ends with 'c'). You can perform operations on the string to reduce its size, where one operation is equal to removing one character from the ends (effectively yielding a contiguous substring of the original string). Your goal is to maximize the number ...

The full answer & interview discussion are available to premium members.

Log in Create a free account