diff --git a/dsa-solutions/lc-solutions/0900-0999/0984-string-without-aaa-or-bbb.md b/dsa-solutions/lc-solutions/0900-0999/0984-string-without-aaa-or-bbb.md
new file mode 100644
index 000000000..a2c0b32ff
--- /dev/null
+++ b/dsa-solutions/lc-solutions/0900-0999/0984-string-without-aaa-or-bbb.md
@@ -0,0 +1,177 @@
+---
+id: string-without-aaa-or-bbb
+title: String Without AAA or BBB
+sidebar_label: 984-String Without AAA or BBB
+tags:
+ - Greedy
+ - String
+ - LeetCode
+ - Java
+ - Python
+ - C++
+description: "This is a solution to the String Without AAA or BBB problem on LeetCode."
+sidebar_position: 3
+---
+
+## Problem Description
+
+Given two integers `a` and `b`, return any string `s` such that:
+
+- `s` has length `a + b` and contains exactly `a` 'a' letters and exactly `b` 'b' letters.
+- The substring 'aaa' does not occur in `s`.
+- The substring 'bbb' does not occur in `s`.
+
+### Examples
+
+**Example 1:**
+
+```
+Input: a = 1, b = 2
+Output: "abb"
+Explanation: "abb", "bab", and "bba" are all correct answers.
+```
+
+**Example 2:**
+
+```
+Input: a = 4, b = 1
+Output: "aabaa"
+```
+
+### Constraints
+
+- `0 <= a, b <= 100`
+- It is guaranteed that such a string `s` exists for the given `a` and `b`.
+
+---
+
+## Solution for String Without AAA or BBB Problem
+
+To solve this problem, we need to construct a string of length `a + b` containing exactly `a` 'a' letters and `b` 'b' letters. The key is to ensure that no substring 'aaa' or 'bbb' is formed.
+
+### Approach
+
+1. **Greedy Construction:**
+ - Start by determining the majority character (the one with the higher count).
+ - Add two of the majority character if more than one remains, followed by one of the minority character.
+ - If both characters have equal counts, alternate between the two to avoid 'aaa' or 'bbb'.
+
+2. **Ensure No Consecutive Repetitions:**
+ - Keep track of the previous two characters to ensure that adding another of the same character won't create three consecutive identical characters.
+
+### Code in Different Languages
+
+