π§ Cracking the Code: My Unforgettable Journey through Google's Secret Coding Challenge : "Google Foobar" π§

I was eagerly browsing for information on the Observer design pattern for my academic course exam when, out of nowhere blue, an unexpected website called Google Foobar presented itself to me. I was curious and fascinated, so I dove into its mysterious depths and found an exclusive coding challenge that only a select few lucky people get to take part in.


Fortunately, I was able to pass Level 2, which gave me a sense of achievement and fresh confidence. Now that Level 3 is approaching, there is a whole new world of challenging riddles and complex algorithms to solve. The next part of this surprising experience excites me, and I joyfully welcome it, testing my coding skills.

- foobar:~/ Sumontasaha80$ request
// It means you are requesting for your first question of the challenge
- foobar:~/ Sumontasaha80$ ls // list the contents of the current directory
** Output : **
journal.txt
skipping-work
start_here.txt
- foobar:~/ Sumontasaha80$ cd skipping-work // change your working directory to folder skipping-work
- foobar:~/skipping-work Sumontasaha80$ ls // list the contents of the current directory
** Output : **
Solution.java
constraints.txt
readme.txt
solution.py
- foobar:~/skipping-work Sumontasaha80$ cat readme.txt
- foobar:~/skipping-work Sumontasaha80$ cat constraints.txt
// Open Code Terminal First
- foobar:~/skipping-work Sumontasaha80$ edit Solution.java
// Paste or Write the Solution
// Save the solution
// Verify the solution with constraints
- foobar:~/skipping-work Sumontasaha80$ verify Solution.java
// If all the constraints matched
**Output:**
Verifying solution...
All test cases passed.
// For Final Submission
- foobar:~/skipping-work Sumontasaha80$ submit Solution.java
**Output:**
Are you sure you want to submit your solution?
[Y]es or [N]o: Y
Submitting solution...
- foobar:~/ Sumontasaha80$ request
// It means you are requesting for your first question of the challenge
- foobar:~/ Sumontasaha80$ ls // list the contents of the current directory
** Output : **
journal.txt
ion-flux-relabeling
start_here.txt
- foobar:~/ Sumontasaha80$ cd ion-flux-relabeling // change your working directory to folder ion-flux-relabeling
- foobar:~/ion-flux-relabeling Sumontasaha80$ ls // list the contents of the current directory
** Output : **
Solution.java
constraints.txt
readme.txt
solution.py
- foobar:~/ion-flux-relabeling Sumontasaha80$ cat readme.txt
- foobar:~/ion-flux-relabeling Sumontasaha80$ cat constraints.txt
// Open Code Terminal First
- foobar:~/ion-flux-relabeling Sumontasaha80$ edit Solution.java
// Paste or Write the Solution
// Save the solution
// Verify the solution with constraints
- foobar:~/ion-flux-relabeling Sumontasaha80$ verify Solution.java
// If all the constraints matched
**Output:**
Verifying solution...
All test cases passed.
// For Final Submission
- foobar:~/ion-flux-relabeling Sumontasaha80$ submit Solution.java
**Output:**
Are you sure you want to submit your solution?
[Y]es or [N]o: Y
Submitting solution...
- foobar:~/ Sumontasaha80$ request
// It means you are requesting for your next question of the challenge
- foobar:~/ Sumontasaha80$ ls // list the contents of the current directory
** Output : **
journal.txt
numbers-station-coded-messages
start_here.txt
- foobar:~/ Sumontasaha80$ cd numbers-station-coded-messages // change your working directory to folder numbers-station-coded-messages
- foobar:~/numbers-station-coded-messages Sumontasaha80$ ls // list the contents of the current directory
** Output : **
Solution.java
constraints.txt
readme.txt
solution.py
- foobar:~/numbers-station-coded-messagesSumontasaha80$ cat readme.txt
- foobar:~/numbers-station-coded-messages Sumontasaha80$ cat constraints.txt
// Open Code Terminal First
- foobar:~/numbers-station-coded-messages Sumontasaha80$ edit Solution.java
// Paste or Write the Solution
// Save the solution
// Verify the solution with constraints
- foobar:~/numbers-station-coded-messages Sumontasaha80$ verify Solution.java
// If all the constraints matched
**Output:**
Verifying solution...
All test cases passed.
// For Final Submission
- foobar:~/numbers-station-coded-messages Sumontasaha80$ submit Solution.java
**Output:**
Are you sure you want to submit your solution?
[Y]es or [N]o: Y
Submitting solution...