The idea for the smart garbage can came about at a popular Bangalore music festival in 2013.

"Pratik and I got lost and it took us two hours to find each other," said Desai. "It struck us that we needed to come up with a solution for people to stay connected at these events."

They were also struck by the massive amounts of trash everywhere.

So Desai and Agarwal, both 26, invented a trash can that rewards people with 15 minutes of free Wi-Fi every time they throw something away.

The smart trash bin from ThinkScream.

The plastic bin (which costs about $1,470) is four-and-a-half feet high with an LED screen. When you throw something in it, the screen flashes a unique code to access 15 minutes of Wi-Fi (which works within a 50 meter radius).

ThinkScream partnered with a local telecom company and debuted six smart bins at a music festival in 2014.

Since then, the startup has received a number of inquiries from companies who see it as a viral branding opportunity, Desai said.

"But that wasn't our intention," he said. "It wasn't a gimmick. It was meant to be a catalyst for the public to change their behavior and stop littering."

Using technology to change behavior is what Desai and Agarwal set out to accomplish when they launched their startup in 2012.

ThinkScream comes up with innovative ways to provide Wi-Fi to Indian consumers.

Its flagship product, customized for movie theaters in Mumbai, allowed people to use Wi-Fi to order food from the concession stand and and have it delivered to their seats. They rolled it out into 60 theaters in Mumbai. ThinkScream has also partnered with music festival organizers to provide attendees with easy Wi-Fi access.

How successful are the bins? It's too early to tell, said Desai.

"We haven't done a before-and-after analysis yet, but anecdotally we know that people do like to use the bin for the wow factor at first and then for the free WiFi," he said.

ThinkScream doesn't have any smart bins currently deployed (although there are a few test bins at events and colleges). But Desai is encouraged that private companies and government agencies have reached out to see how the bins can be deployed in large cities like Mumbai.

Mumbai, Desai's hometown, is India's most populous city with more than 18 million residents.

It is also the world's fifth top producer of solid waste, according to a May 2015 report by the Proceedings of the National Academy of Sciences.

The city generates over 7,000 tonnes of solid waste daily, according to India's Central Pollution Board Control agency. And a lot of that waste isn't properly contained in trash bins.