Hey Everyone! So I was searching for some random problem-solving questions and came across this interesting problem. After spending some time solving this, I came up with this solution and thought to share it with you guys as I didn’t find any proper solution for this problem.

Problem Statement: For a given string, Find the numbers present inside the string and return the count of them. [Sorry don’t remember the exact statement so made this up]

Sample Test Case:


string = "Th1s i5 a string with 50m3 numb3r5"


Count: 6
[1, 5, 50 3, 3, 5]


Hello World! Welcome to the blog…

You guys can also try amazing room by purchasing a premium subscription of TryHackMe.

Alright! Let's begin.

Go to Authenticate Room inside Your Hacktivities:

Room Overview

Task 1 — Deploy the VM:

Akshat Soni

Cyber Security Student | CTF Player | Not Really An Author

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store