Mini Word-Search

2

1 votes
Very-Easy
Problem

Given 3 by 3 matrix, find whether the given three letter word exists in the matrix or not.

Input Format

A 3 by 3 matrix containing all lower-case letters A single three lettered word

Output Format

‘Exists’, if word exists in there and ‘Not Exists’, if the word do not exists(Without quotes)

Constraints

All small case alphabets

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?